<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<title>封条管理及验证系统--编辑备忘</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	</head>
	<%@ include file="/comm.jsp"%>
	<script>
	$(document).ready(function() {
		$("form *").autohelp("#autohelp");
	});
	$(document).ready(function(){
	  $('#ok').click(function() {
		$("#noteInfo_save").submit();
	  }) 
	  $("#noteInfo_save").validate();
	  	
	  	var index=$d("hdfIndex").value;
		if(index != ""){
			$d("flag"+index).checked=true;
		}
	});
</script>

	<style type="text/css">
<!--
fieldset {
	padding: 10px;
	margin: 10px;
	width: 270px;
	color: #333;
}

legend {
	color: #06c;
	font-weight: 800;
}
-->
</style>
	<body leftmargin="0" topmargin="0" marginheight="0">
		<s:form name="formpage" action="noteInfo_save" namespace="/">
			<s:hidden id="id" name="noteInfo.id" value="%{#request.noteInfo.id}" />
			<s:hidden id="busiNo" name="noteInfo.busiNo" value="%{#request.noteInfo.busiNo}" />
			<s:hidden id="type" name="type" value="%{#request.type}" />
			<s:hidden id="hdfIndex" value="%{#request.noteInfo.noteIndex}" />
			<s:token />
			<div align="center">
				<%@ include file="/messages.jsp"%>
				<s:if test="#request.type==1">
					<%@ include file="simpleBusiInfo.jsp"%>
				</s:if>
				<s:if test="#request.type==2">
					安全防护内容显示。。。
				</s:if>
				
				<table class="memo-editor">
					<tbody>
						<tr class="flag-options">
							<th width="120" align="right">
								标记：
							</th>
							<td>
								<ul>
									<li>
										<input type="radio" id="flag1" name="noteInfo.noteIndex" value="1">
										<label class="memo-flag" for="flag1">
											<img
												src="<%=request.getContextPath()%>/images/op_memo_1.png" />
										</label>
									</li>
									<li>
										<input type="radio" id="flag2" name="noteInfo.noteIndex" value="2">
										<label class="memo-flag" for="flag2">
											<img
												src="<%=request.getContextPath()%>/images/op_memo_2.png" />
										</label>
									</li>
									<li>
										<input type="radio" id="flag3" name="noteInfo.noteIndex" value="3">
										<label class="memo-flag" for="flag3">
											<img
												src="<%=request.getContextPath()%>/images/op_memo_3.png" />
										</label>
									</li>
									<li>
										<input type="radio" id="flag4" name="noteInfo.noteIndex" value="4">
										<label class="memo-flag" for="flag4">
											<img
												src="<%=request.getContextPath()%>/images/op_memo_4.png" />
										</label>
									</li>
									<li>
										<input type="radio" id="flag5" name="noteInfo.noteIndex" value="5">
										<label class="memo-flag" for="flag5">
											<img
												src="<%=request.getContextPath()%>/images/op_memo_5.png" />
										</label>
									</li>
								</ul>
							</td>
						</tr>
						<tr>
							<th align="right">
								备忘信息：
							</th>
							<td>
								<label for="memo" class="memo-textarea-label">
									备忘信息作为你对这笔业务单的备忘记录，仅自己可见。
								</label>
								<textarea id="info" name="noteInfo.info" cols="80" rows="8">${noteInfo.info }</textarea>
							</td>
						</tr>

						<tr class="submit">
							<td colspan="2">
								<div class="skin-blue" align="center">
									<button type="button" class="btn" id="ok">
										确 定
									</button>
								</div>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</s:form>

	</body>
</html>